﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Globalization;
using System.Linq;

using SBPweb.PlAzureNet.Server.Data.Actors;
using SBPweb.PlAzureNet.Server.Data.Context;

using SBPweb.PlAzureNet.Server.Library.Operations;

namespace SBPweb.PlAzureNet.Server.Library.Services
{

    partial class TrackingService : IActionTrackingServiceContract
    {
        
        public void RegisterAction(Server.Data.Actors.Action action)
        {
            using (var context = DataTablesContext.CreateContextInstance())
            {
                context.Actions.InsertOnSubmit(action);
                context.SubmitChanges();
            }
        }

    }

}